package infos;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement(name = "AddressInfo")
public class AddressInfo {
    private long id;
    private String city;
    private String street;
    private int building;
    private int apartment;
    private List<Long> personsIds;

    public AddressInfo() {
    }

    @XmlElement(required = false)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public int getBuilding() {
        return building;
    }

    public void setBuilding(int building) {
        this.building = building;
    }

    public int getApartment() {
        return apartment;
    }

    public void setApartment(int apartment) {
        this.apartment = apartment;
    }

    @XmlElement(required = false)
    public List<Long> getPersonsIds() {
        return personsIds;
    }

    public void setPersonsIds(List<Long> personsIds) {
        this.personsIds = personsIds;
    }
}
